package com.zxhx.eurekaclient1.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author peng shuai
 * @Date 2020/5/21 21:09
 * @desc 测试客户端
 * @Version 1.0
 */

@RestController
public class TestController {

/*    @Value("${server.port}")
    String port;*/
    @RequestMapping("/hi")
    public String home(@RequestParam String name) {
        return "hi "+name+",i am from port:" +8762;
    }

    @RequestMapping("/actuator/info")
    public String testBIn(){

        return "hi visitor";
    }
}
